﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using LDAP.Web;
using LDAP.Entity;
using LDAP.BLL;
using System.Collections;

namespace LDAP.Web.View.Attendance
{
    public partial class ReportMgmt : AngelBasePage
    {
        public List<Hashtable> DeptList;

        protected void Page_Load(object sender, EventArgs e)
        {
            DeptList = BizUser.AllDept();

            Angel angel = BizAngel.GetByKey(CurrentUser.Id);
            if (!IsSuperAdministrator()) {
                DeptList = DeptList.Where(l => angel.Dept.IndexOf("," + l["id"] + ",") > -1).ToList();
            }
        }
    }
}